package com.example.beikeyigou.login_reg;

import java.io.Serializable;
import java.util.Objects;

public class UserBean implements Serializable {
    private int code;
    private String message;
    private DataBean data;

    public static class DataBean implements Serializable {
        private int id;
        private String phone;
        private String password;
        private String name;
        private String address;
        private String nickname;
        private String question;
        private String answer;

        public DataBean() {
        }

        public DataBean(int id, String phone, String password, String name, String address, String nickname, String question, String answer) {
            this.id = id;
            this.phone = phone;
            this.password = password;
            this.name = name;
            this.address = address;
            this.nickname = nickname;
            this.question = question;
            this.answer = answer;
        }

        @Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            DataBean dataBean = (DataBean) o;
            return id == dataBean.id &&
                    Objects.equals(phone, dataBean.phone) &&
                    Objects.equals(password, dataBean.password) &&
                    Objects.equals(name, dataBean.name) &&
                    Objects.equals(address, dataBean.address) &&
                    Objects.equals(nickname, dataBean.nickname) &&
                    Objects.equals(question, dataBean.question) &&
                    Objects.equals(answer, dataBean.answer);
        }

        @Override
        public int hashCode() {
            return Objects.hash(id, phone, password, name, address, nickname, question, answer);
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getQuestion() {
            return question;
        }

        public void setQuestion(String question) {
            this.question = question;
        }

        public String getAnswer() {
            return answer;
        }

        public void setAnswer(String answer) {
            this.answer = answer;
        }
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public DataBean getData() {
        return data;
    }
}
